import { useDispatch } from 'react-redux'
import { getSongDetailAction } from '../pages/player/store/actionCreators'
export default function usePlayMusic() {
  const dispatch = useDispatch()
  const playMusic = (ids) => {
    dispatch(getSongDetailAction(ids))
  }
  return playMusic
  
}